package updateDatabases;

/**
 * Calls the method to update the game scores
 * 
 * @author Yahweh Yago
 * 
 */

public class UpdateBotFinal {

  static String[] gameList;
  static String[] games;

  /*
   * Updates the games' scores
   */
  public static void updateGAMERS() {

    String[] games;

    try {
      games = new GetTheListGames().execute("Most Popular");
      for (int i = 1; i < games.length; i++) {
        String gnames = games[i];
        System.out.println(gnames);

        // This will call the crawlers on each game from TOP RATED list
        String gstop = (Gamestop.gameSpot(gnames));
        String metaC = Double.toString(Metacritic.metaScore(gnames));
        String ign = (IgnScore.Ign(gnames));

        System.out.println(metaC);
        System.out.println(gstop);
        System.out.println(ign);
      }
    }
    catch (Exception e) {
      e.printStackTrace();
    }

  }

}
